//销售

import request from '@/utils/request'
//添加广告主时的参数
export function getDropdown(data) {
  return request({
    url: '/api/Return_Dropdown_Id',
    method: 'post',
    data
  })
}
//获取广告主列表
export function getAdvertising(data) {
  return request({
    url: '/api/Choose_Advertiser',
    method: 'get',
    params:data
  })
}
//广告主获取详情
export function getAdvertisingInfo(data) {
  return request({
    url: '/api/Choose_Advertiser_bj',
    method: 'get',
    params:data
  })
}
//添加广告主
export function AddAdvertising(data) {
  console.log(data)
  return request({
    url: '/api/Choose_Advertiser',
    method: 'post',
    data
  })
}
//修改广告主
export function SetAdvertisings(data) {
  return request({
    url: '/api/Choose_Advertiser_xg',
    method:'post',
    data
  })
}
//获取代理管理列表
export function GetAgencyManagement(data) {
  return request({
    url: '/api/Agency_Management',
    method: 'get',
    params:data
  })
}
//新建代理
export function AddAgencyManagement(data) {
  return request({
    url: '/api/Agency_Management',
    method: 'post',
    data
  })
}
//获取代理详情
export function getAgencyIfo(data) {
  return request({
    url: '/api/AgentModification_look',
    method: 'post',
    data
  })
}
//编辑代理详情
export function editAgencyIfo(data) {
  return request({
    url: '/api/AgentModification',
    method: 'post',
    data
  })
}
//编辑添加项目报备
export function addProjectReport(data) {
  return request({
    url: '/api/Project_Report',
    method: 'post',
    data
  })
}
//获取项目报备列表
export function getProjectlist(data) {
  return request({
    url: '/api/Project_Report',
    method: 'get',
    params:data
  })
}
//获取项目报备详情
export function getProjectInfo(data) {
  return request({
    url: '/api/project_report_modify',
    method: 'get',
    params:data
  })
}
//修改报备信息
export function editProjectInfo(data) {
  return request({
    url: '/api/Project_Report_Modify',
    method: 'post',
    data
  })
}